<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>RaftLib: schedule.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">RaftLib
   &#160;<span id="projectnumber">0.3a</span>
   </div>
   <div id="projectbrief">C++ Stream Processing Template Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">schedule.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef _SCHEDULE_HPP_</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define _SCHEDULE_HPP_  1</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;setjmp.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;signalvars.hpp&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;systemsignalhandler.hpp&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;rafttypes.hpp&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;kernelkeeper.tcc&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceraft.html">raft</a> {</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;   <span class="keyword">class </span>kernel;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;}</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">class </span><a class="code" href="class_map.html">Map</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_schedule.html">   34</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_schedule.html">Schedule</a></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;   <a class="code" href="class_schedule.html#ad88c01f0ebf0c2f3bfa3ca2fe7ca3e8f">Schedule</a>( <a class="code" href="class_map.html">Map</a> &amp;map );</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;   </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;   <span class="keyword">virtual</span> <a class="code" href="class_schedule.html#a4806b985197d35c00b9e707c0ed87998">~Schedule</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;   </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_schedule.html#ab6ad5540ecdef6b472b4e8242a47c4ee">start</a>() = 0;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_schedule.html#a5180032a0c2135507859ccf2a4eea1ab">init</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;   </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_schedule.html#acf28b4a4231e693585751a035873615c">kernelRun</a>( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> * <span class="keyword">const</span> kernel,</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                          <span class="keyword">volatile</span> <span class="keywordtype">bool</span>       &amp;finished,</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                          jmp_buf             *gotostate    = <span class="keyword">nullptr</span>,</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                          jmp_buf             *kernel_state = <span class="keyword">nullptr</span>  );</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;   </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_schedule.html#a6a722f6e76c8b8dc67874d9974b6d641">scheduleKernel</a>( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> * <span class="keyword">const</span> kernel );</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> handleSchedule( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> * <span class="keyword">const</span> kernel ) = 0; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;   <span class="keyword">static</span> raft::kstatus <a class="code" href="class_schedule.html#a85de3d48407aa378ccc86a4a4206b32a">checkSystemSignal</a>( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> * <span class="keyword">const</span> kernel, </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                                           <span class="keywordtype">void</span> *data,</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                                           <a class="code" href="class_system_signal_handler.html">SystemSignalHandler</a> &amp;<a class="code" href="class_schedule.html#ad248e99611a87776fb411836cd46a603">handlers</a> );</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;   <span class="keyword">static</span> raft::kstatus <a class="code" href="class_schedule.html#a5167d622689a34ea5f3a065304295521">quitHandler</a>( <a class="code" href="class_f_i_f_o.html">FIFO</a>              &amp;fifo,</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                                     <a class="code" href="classraft_1_1kernel.html">raft::kernel</a>      *kernel,</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                                     <span class="keyword">const</span> raft::signal signal,</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                                     <span class="keywordtype">void</span>              *data );</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;   </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;   </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;   <span class="keyword">static</span> <span class="keywordtype">void</span> invalidateOutputPorts( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> *kernel );</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_schedule.html#ac23de3dd63554401fd0d8d23b60eecfa">kernelHasInputData</a>( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> *kernel );</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;   </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_schedule.html#a2e2035e0c0666054f8401ad2b3792854">kernelHasNoInputPorts</a>( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> *kernel );</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="class_schedule.html#ad248e99611a87776fb411836cd46a603">  148</a></span>&#160;   <a class="code" href="class_system_signal_handler.html">SystemSignalHandler</a> <a class="code" href="class_schedule.html#ad248e99611a87776fb411836cd46a603">handlers</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;   </div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_schedule.html#a1a448b0d48e656f94db65a70cedd8eed">  151</a></span>&#160;   kernelkeeper &amp;<a class="code" href="class_schedule.html#a1a448b0d48e656f94db65a70cedd8eed">kernel_set</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;   kernelkeeper &amp;source_kernels;      </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;   kernelkeeper &amp;dst_kernels;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="comment">//   Map &amp;map_ref;</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;};</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* END _SCHEDULE_HPP_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_system_signal_handler_html"><div class="ttname"><a href="class_system_signal_handler.html">SystemSignalHandler</a></div><div class="ttdef"><b>Definition:</b> systemsignalhandler.hpp:46</div></div>
<div class="ttc" id="class_schedule_html_acf28b4a4231e693585751a035873615c"><div class="ttname"><a href="class_schedule.html#acf28b4a4231e693585751a035873615c">Schedule::kernelRun</a></div><div class="ttdeci">static bool kernelRun(raft::kernel *const kernel, volatile bool &amp;finished, jmp_buf *gotostate=nullptr, jmp_buf *kernel_state=nullptr)</div><div class="ttdef"><b>Definition:</b> schedule.cpp:156</div></div>
<div class="ttc" id="class_schedule_html_a4806b985197d35c00b9e707c0ed87998"><div class="ttname"><a href="class_schedule.html#a4806b985197d35c00b9e707c0ed87998">Schedule::~Schedule</a></div><div class="ttdeci">virtual ~Schedule()</div><div class="ttdef"><b>Definition:</b> schedule.cpp:17</div></div>
<div class="ttc" id="class_schedule_html_a85de3d48407aa378ccc86a4a4206b32a"><div class="ttname"><a href="class_schedule.html#a85de3d48407aa378ccc86a4a4206b32a">Schedule::checkSystemSignal</a></div><div class="ttdeci">static raft::kstatus checkSystemSignal(raft::kernel *const kernel, void *data, SystemSignalHandler &amp;handlers)</div><div class="ttdef"><b>Definition:</b> schedule.cpp:57</div></div>
<div class="ttc" id="class_schedule_html_a2e2035e0c0666054f8401ad2b3792854"><div class="ttname"><a href="class_schedule.html#a2e2035e0c0666054f8401ad2b3792854">Schedule::kernelHasNoInputPorts</a></div><div class="ttdeci">static bool kernelHasNoInputPorts(raft::kernel *kernel)</div><div class="ttdef"><b>Definition:</b> schedule.cpp:141</div></div>
<div class="ttc" id="class_schedule_html_a1a448b0d48e656f94db65a70cedd8eed"><div class="ttname"><a href="class_schedule.html#a1a448b0d48e656f94db65a70cedd8eed">Schedule::kernel_set</a></div><div class="ttdeci">kernelkeeper &amp; kernel_set</div><div class="ttdef"><b>Definition:</b> schedule.hpp:151</div></div>
<div class="ttc" id="class_schedule_html_ab6ad5540ecdef6b472b4e8242a47c4ee"><div class="ttname"><a href="class_schedule.html#ab6ad5540ecdef6b472b4e8242a47c4ee">Schedule::start</a></div><div class="ttdeci">virtual void start()=0</div></div>
<div class="ttc" id="class_map_html"><div class="ttname"><a href="class_map.html">Map</a></div><div class="ttdef"><b>Definition:</b> map.hpp:47</div></div>
<div class="ttc" id="class_schedule_html_a5180032a0c2135507859ccf2a4eea1ab"><div class="ttname"><a href="class_schedule.html#a5180032a0c2135507859ccf2a4eea1ab">Schedule::init</a></div><div class="ttdeci">virtual void init()</div><div class="ttdef"><b>Definition:</b> schedule.cpp:23</div></div>
<div class="ttc" id="class_schedule_html_a5167d622689a34ea5f3a065304295521"><div class="ttname"><a href="class_schedule.html#a5167d622689a34ea5f3a065304295521">Schedule::quitHandler</a></div><div class="ttdeci">static raft::kstatus quitHandler(FIFO &amp;fifo, raft::kernel *kernel, const raft::signal signal, void *data)</div><div class="ttdef"><b>Definition:</b> schedule.cpp:30</div></div>
<div class="ttc" id="class_schedule_html_ac23de3dd63554401fd0d8d23b60eecfa"><div class="ttname"><a href="class_schedule.html#ac23de3dd63554401fd0d8d23b60eecfa">Schedule::kernelHasInputData</a></div><div class="ttdeci">static bool kernelHasInputData(raft::kernel *kernel)</div><div class="ttdef"><b>Definition:</b> schedule.cpp:120</div></div>
<div class="ttc" id="class_schedule_html_ad88c01f0ebf0c2f3bfa3ca2fe7ca3e8f"><div class="ttname"><a href="class_schedule.html#ad88c01f0ebf0c2f3bfa3ca2fe7ca3e8f">Schedule::Schedule</a></div><div class="ttdeci">Schedule(Map &amp;map)</div><div class="ttdef"><b>Definition:</b> schedule.cpp:9</div></div>
<div class="ttc" id="class_schedule_html"><div class="ttname"><a href="class_schedule.html">Schedule</a></div><div class="ttdef"><b>Definition:</b> schedule.hpp:34</div></div>
<div class="ttc" id="classraft_1_1kernel_html"><div class="ttname"><a href="classraft_1_1kernel.html">raft::kernel</a></div><div class="ttdef"><b>Definition:</b> kernel.hpp:57</div></div>
<div class="ttc" id="namespaceraft_html"><div class="ttname"><a href="namespaceraft.html">raft</a></div><div class="ttdef"><b>Definition:</b> globalmap.cpp:3</div></div>
<div class="ttc" id="class_schedule_html_ad248e99611a87776fb411836cd46a603"><div class="ttname"><a href="class_schedule.html#ad248e99611a87776fb411836cd46a603">Schedule::handlers</a></div><div class="ttdeci">SystemSignalHandler handlers</div><div class="ttdef"><b>Definition:</b> schedule.hpp:148</div></div>
<div class="ttc" id="class_f_i_f_o_html"><div class="ttname"><a href="class_f_i_f_o.html">FIFO</a></div><div class="ttdef"><b>Definition:</b> fifo.hpp:48</div></div>
<div class="ttc" id="class_schedule_html_a6a722f6e76c8b8dc67874d9974b6d641"><div class="ttname"><a href="class_schedule.html#a6a722f6e76c8b8dc67874d9974b6d641">Schedule::scheduleKernel</a></div><div class="ttdeci">void scheduleKernel(raft::kernel *const kernel)</div><div class="ttdef"><b>Definition:</b> schedule.cpp:93</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Oct 12 2015 12:16:50 for RaftLib by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
